package cxp.xuexi.maven_shiro.controller;

import cxp.xuexi.maven_shiro.mapper.RegionCodeInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by ASUS on 2018/2/20.
 */
@Controller
public class LoginController {
    @Autowired
    private RegionCodeInfoMapper regionCodeInfoMapper;

    @RequestMapping("/login")
    public String login() {
        System.out.println("login");
        System.out.println(regionCodeInfoMapper.findRegionCodeInfoList());
        return "login";
    }
}
